package com.biovr.backend.repository;

import com.biovr.backend.domain.Grade;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by dell on 2017/3/26.
 */
@Repository
public interface GradeRepository extends MongoRepository<Grade,String> {
    Grade findByName(String name);
    List<Grade> findBySchoolId(String schoolId);
}
